package com.example.work.entity;

import javax.persistence.*;
import java.io.Serializable;
/**
 * Description:     User实体类
 * Author:         JinMu
 * CreateDate:     2018/2/26 10:47
 * Version:        1.0
 */
@Entity
@Table(name = "t_user")
public class UserEntity implements Serializable {

    private static final long serialVersionUID = -1L;
    @Id
    @Column(name = "t_name")
    private String name;

    @Column(name = "t_pwd")
    private String password;

    @Column(name="t_mid")
    private String MerchantID;

    @Column(name="t_key")
    private String Key;

    public UserEntity() {
    }

    public UserEntity(String name,String password){
        this.name=name;
        this.password=password;
    }
    public UserEntity(String name, String password, String merchantID, String key) {
        this.name = name;
        this.password = password;
        MerchantID = merchantID;
        Key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMerchantID() {
        return MerchantID;
    }

    public void setMerchantID(String merchantID) {
        MerchantID = merchantID;
    }

    public String getKey() {
        return Key;
    }

    public void setKey(String key) {
        Key = key;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", MerchantID='" + MerchantID + '\'' +
                ", Key='" + Key + '\'' +
                '}';
    }
}
